#include "control/user_control.h"
#include "our_header.h"


int longCmdTranfor(int fd,MYSQL *conn,train_t *train){
	if(checkToken(train))
		return -1;
	SQItem item = {0};
	item.netfd = fd;
	memcpy(&item.tra, train, sizeof(train_t));
	produceSocketFd_h(&item);
	return 0;
}